<template>
  <div class="menu-list">
    <a v-for="(item,index) in menuList" :key="item.id" :href="item.url" >
      <div class="desc" :class="menu==index?'active':''">{{item.desc}}</div>
    </a>
  </div>
</template>

<script>

export default {
  props: ['menu'],
  data () {
    return {
      menuList: [{
        url: '/',
        desc: '泰国指南'
      }, {
        url: '/video',
        desc: '热门视频'
      }]
    }
  },

  methods: {
    async getContent () {
      const res = await this.$http.get('/thai/api/v1/get_store_list')

      if (res.body.status) {
        console.log('get_store_list', res.body.data)
        this.storeList = res.body.data
      } else {
        throw new Error(res.body.msg)
      }
    }
  },
  mounted () {
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.menu-list{
  height:30px;
  background-color: #fff;
  z-index:1;
  position: absolute;
  left: 0;
  right: 0;
  bottom:0;
  border-top:solid 1px #eee;
}
a {
  text-decoration: none;
  color: #42b983;
  width:50%;
  display: inline-block;
  float: left;
  text-align: center;
  line-height: 30px;
}
.active{
   color:#d8810f;
}
</style>
